import java.util.Scanner;

public class program7 {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        System.out.print("Enter the number of minutes: ");
        long min = in.nextLong();
        final int MIN_PER_DAY = 60 * 24;
        final int DAYS_PER_YEAR = 365;
        long days = min / MIN_PER_DAY;
        long years = days / DAYS_PER_YEAR;
        days %= DAYS_PER_YEAR;
        System.out.printf("%d minutes is approximately %d years and %d days%n",
                min, years, days);
    }
}